package com.kgc.util;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author :qinya
 * @PackageName:com.kgc.util
 * @ClassName: StrToDate
 * @Description: TODO
 * @date : 2025/5/17,14:22
 */
public class StrToDate {

    public static Date strToDate(String strData) throws ParseException {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        return sdf.parse(strData);
    }
}
